// This file was automatically generated from randomfriendssurvey.soy.
// Please don't edit this file by hand.

goog.provide('esn.soy.randomFriendsSurvey');

goog.require('soy');
goog.require('soy.StringBuilder');


esn.soy.randomFriendsSurvey.content = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('<div class="esnRandomFriendsSurvey"><div class="surveyTitle">Random Relationship</div><div class="surveyInstructions">This final two question asks you to very briefly discuss how you came to know one person we randomly selected from your social network. This question seeks to understand how, where, and why you first developed a relationship with this randomly selected relation.</div><table><tr>');
  var friendSurveyList4 = opt_data.FriendSurveys;
  var friendSurveyListLen4 = friendSurveyList4.length;
  for (var friendSurveyIndex4 = 0; friendSurveyIndex4 < friendSurveyListLen4; friendSurveyIndex4++) {
    var friendSurveyData4 = friendSurveyList4[friendSurveyIndex4];
    output.append('<td width="100%"><div class="name">', soy.$$escapeHtml(friendSurveyData4['friend']['first_name']), ' ', soy.$$escapeHtml(friendSurveyData4['friend']['last_name']), '</div><div class="personContainer"><div class="question">Where was is it that you first met (interacted) with this person (i.e. in my dorm’s study area, in class, at a sporting event, in a club, etc.)?</div><div class="questionInputContainer"><textarea id="', soy.$$escapeHtml(friendSurveyData4.id), '-questionOneInput" rows="5" class="questionInput">', (friendSurveyData4['first_met_location']) ? soy.$$escapeHtml(friendSurveyData4['first_met_location']) : '', '</textarea></div><div class="question">What led to your first interaction with this person (i.e. you were introduced by a mutual friend, you were wearing the same jersey, s/he asked you a question,etc.)?</div><div class="questionInputContainer"><textarea id="', soy.$$escapeHtml(friendSurveyData4.id), '-questionTwoInput" rows="5" class="questionInput">', (friendSurveyData4['first_met_interation']) ? soy.$$escapeHtml(friendSurveyData4['first_met_interation']) : '', '</textarea></div></div><td>', (! (friendSurveyIndex4 == friendSurveyListLen4 - 1)) ? '<td width="2%"></td>' : '');
  }
  output.append('</tr></table><div class="buttonContainer"><div class="backButton"></div><div class="continueButton"></div></div></div>');
  return opt_sb ? '' : output.toString();
};


esn.soy.randomFriendsSurvey.questionOne = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('Where was is it that you first met (interacted) with this person (i.e. in my dorm’s study area, in class, at a sporting event, in a club, etc.)?');
  return opt_sb ? '' : output.toString();
};


esn.soy.randomFriendsSurvey.questionTwo = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('What led to your first interaction with this person (i.e. you were introduced by a mutual friend, you were wearing the same jersey, s/he asked you a question,etc.)?');
  return opt_sb ? '' : output.toString();
};
